home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Interfaces / Universal Interfaces 2.0a3 / Universal AIncludes / Quickdraw.a < prev    next >
Encoding:
Text File  |  1994-11-11  |  31.0 KB  |  1,751 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Quickdraw.a
  3. ;
  4. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  5. ;                All rights reserved.
  6. ;
  7. ;    Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8. ;
  9. ;    Bugs?:        If you find a problem with this file, send the file and version
  10. ;                information (from above) and the problem description to:
  11. ;
  12. ;                    Internet:    apple.bugs@applelink.apple.com
  13. ;                    AppleLink:    APPLE.BUGS
  14. ;
  15. ;
  16.  
  17.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  18. __QUICKDRAW__ SET 1
  19.  
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24. ;        include 'ConditionalMacros.a'                                ;
  25.  
  26.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  27.     include 'MixedMode.a'
  28.     ENDIF
  29.  
  30.     IF &TYPE('__QUICKDRAWTEXT__') = 'UNDEFINED' THEN
  31.     include 'QuickdrawText.a'
  32.     ENDIF
  33.  
  34. invalColReq                        EQU        -1                    ;invalid color table request
  35. ; transfer modes 
  36. srcCopy                            EQU        0                    ;the 16 transfer modes
  37. srcOr                            EQU        1
  38. srcXor                            EQU        2
  39. srcBic                            EQU        3
  40. notSrcCopy                        EQU        4
  41. notSrcOr                        EQU        5
  42. notSrcXor                        EQU        6
  43. notSrcBic                        EQU        7
  44. patCopy                            EQU        8
  45. patOr                            EQU        9
  46. patXor                            EQU        10
  47. patBic                            EQU        11
  48. notPatCopy                        EQU        12
  49. notPatOr                        EQU        13
  50. notPatXor                        EQU        14
  51. notPatBic                        EQU        15
  52. ; Special Text Transfer Mode 
  53. grayishTextOr                    EQU        49
  54. ; Arithmetic transfer modes 
  55. blend                            EQU        32
  56. addPin                            EQU        33
  57.  
  58. addOver                            EQU        34
  59. subPin                            EQU        35
  60. addMax                            EQU        37
  61. adMax                            EQU        37
  62. subOver                            EQU        38
  63. adMin                            EQU        39
  64. ditherCopy                        EQU        64
  65. ; Transparent mode constant 
  66. transparent                        EQU        36
  67. ; QuickDraw color separation constants 
  68. normalBit                        EQU        0                    ;normal screen mapping
  69. inverseBit                        EQU        1                    ;inverse screen mapping
  70. redBit                            EQU        4                    ;RGB additive mapping
  71. greenBit                        EQU        3
  72. blueBit                            EQU        2
  73. cyanBit                            EQU        8                    ;CMYBk subtractive mapping
  74. magentaBit                        EQU        7
  75. yellowBit                        EQU        6
  76. blackBit                        EQU        5
  77. blackColor                        EQU        33                    ;colors expressed in these mappings
  78. whiteColor                        EQU        30
  79. redColor                        EQU        205
  80.  
  81. greenColor                        EQU        341
  82. blueColor                        EQU        409
  83. cyanColor                        EQU        273
  84. magentaColor                    EQU        137
  85. yellowColor                        EQU        69
  86. picLParen                        EQU        0                    ;standard picture comments
  87. picRParen                        EQU        1
  88. clutType                        EQU        0                    ;0 if lookup table
  89. fixedType                        EQU        1                    ;1 if fixed table
  90. directType                        EQU        2                    ;2 if direct values
  91. gdDevType                        EQU        0                    ;0 = monochrome 1 = color
  92.  
  93. roundedDevice                    EQU        5                    ; 1 if device has been “rounded” into the GrayRgn 
  94. hasAuxMenuBar                    EQU        6                    ; 1 if device has an aux menu bar on it 
  95. burstDevice                        EQU        7
  96. ext32Device                        EQU        8
  97. ramInit                            EQU        10                    ;1 if initialized from 'scrn' resource
  98. mainScreen                        EQU        11                    ; 1 if main screen 
  99. allInit                            EQU        12                    ; 1 if all devices initialized 
  100. screenDevice                    EQU        13                    ;1 if screen device [not used]
  101. noDriver                        EQU        14                    ; 1 if no driver for this GDevice 
  102. screenActive                    EQU        15                    ;1 if in use
  103. hiliteBit                        EQU        7                    ;flag bit in HiliteMode (lowMem flag)
  104. pHiliteBit                        EQU        0                    ;flag bit in HiliteMode used with BitClr procedure
  105. defQDColors                        EQU        127                    ;resource ID of clut for default QDColors
  106. ; pixel type 
  107. RGBDirect                        EQU        16                    ; 16 & 32 bits/pixel pixelType value 
  108. ; pmVersion values 
  109. baseAddr32                        EQU        4                    ;pixmap base address is 32-bit address
  110.  
  111. frame                            EQU        0
  112. paint                            EQU        1
  113. erase                            EQU        2
  114. invert                            EQU        3
  115. fill                            EQU        4
  116.  
  117. chunky                            EQU        0
  118. chunkyPlanar                    EQU        1
  119. planar                            EQU        2
  120.  
  121. ;**************   IMPORTANT NOTE REGARDING Pattern  **************************************
  122. ;   Patterns were originally defined as:
  123. ;   
  124. ;        C:             typedef unsigned char Pattern[8];
  125. ;        Pascal:        Pattern = PACKED ARRAY [0..7] OF 0..255;
  126. ;        
  127. ;   The old array defintion of Pattern would cause 68000 based CPU's to crash in certain circum-
  128. ;   stances. The new struct definition is safe, but may require source code changes to compile.
  129. ;   Read the details in TechNote "Platforms & Tools" #PT 38.
  130. ;    
  131. ;********************************************************************************************
  132. Pattern                 RECORD    0
  133. pat                         ds.b    8
  134. sizeof                     EQU    8
  135.                         ENDR
  136.  
  137.  
  138. singleDevicesBit                EQU        0
  139. dontMatchSeedsBit                EQU        1
  140. allDevicesBit                    EQU        2
  141.  
  142. singleDevices                    EQU        1 << singleDevicesBit
  143. dontMatchSeeds                    EQU        1 << dontMatchSeedsBit
  144. allDevices                        EQU        1 << allDevicesBit
  145.  
  146. BitMap                     RECORD    0
  147. baseAddr                 ds.l    1
  148. rowBytes                 ds.w    1
  149. bounds                     ds        Rect
  150. sizeof                     EQU    14
  151.                         ENDR
  152.  
  153. Cursor                     RECORD    0
  154. data                     ds.l    8
  155. mask                     ds.l    8
  156. hotSpot                     ds        Point
  157. sizeof                     EQU    68
  158.                         ENDR
  159.  
  160. PenState                 RECORD    0
  161. pnLoc                     ds        Point
  162. pnSize                     ds        Point
  163. pnMode                     ds.w    1
  164. pnPat                     ds        Pattern
  165. sizeof                     EQU    18
  166.                         ENDR
  167.  
  168. Region                     RECORD    0
  169. rgnSize                     ds.w    1                                    ;size in bytes
  170. rgnBBox                     ds        Rect                                ;enclosing rectangle
  171. sizeof                     EQU    10
  172.                         ENDR
  173.  
  174. Picture                 RECORD    0
  175. picSize                     ds.w    1
  176. picFrame                 ds        Rect
  177. sizeof                     EQU    10
  178.                         ENDR
  179.  
  180. Polygon                 RECORD    0
  181. polySize                 ds.w    1
  182. polyBBox                 ds        Rect
  183. polyPoints                 ds        Point
  184. sizeof                     EQU    14
  185.                         ENDR
  186.  
  187. QDProcs                 RECORD    0
  188. textProc                 ds.l    1
  189. lineProc                 ds.l    1
  190. rectProc                 ds.l    1
  191. rRectProc                 ds.l    1
  192. ovalProc                 ds.l    1
  193. arcProc                     ds.l    1
  194. polyProc                 ds.l    1
  195. rgnProc                     ds.l    1
  196. bitsProc                 ds.l    1
  197. commentProc                 ds.l    1
  198. txMeasProc                 ds.l    1
  199. getPicProc                 ds.l    1
  200. putPicProc                 ds.l    1
  201. sizeof                     EQU    52
  202.                         ENDR
  203.  
  204. GrafPort                 RECORD    0
  205. device                     ds.w    1
  206. portBits                 ds        BitMap
  207. portRect                 ds        Rect
  208. visRgn                     ds.l    1
  209. clipRgn                     ds.l    1
  210. bkPat                     ds        Pattern
  211. fillPat                     ds        Pattern
  212. pnLoc                     ds        Point
  213. pnSize                     ds        Point
  214. pnMode                     ds.w    1
  215. pnPat                     ds        Pattern
  216. pnVis                     ds.w    1
  217. txFont                     ds.w    1
  218. txFace                     ds.b    1                                    ;txFace is unpacked byte but push as short
  219. filler                     ds.b    1
  220. txMode                     ds.w    1
  221. txSize                     ds.w    1
  222. spExtra                     ds.l    1
  223. fgColor                     ds.l    1
  224. bkColor                     ds.l    1
  225. colrBit                     ds.w    1
  226. patStretch                 ds.w    1
  227. picSave                     ds.l    1
  228. rgnSave                     ds.l    1
  229. polySave                 ds.l    1
  230. grafProcs                 ds.l    1
  231. sizeof                     EQU    108
  232.                         ENDR
  233.  
  234. ;
  235. ; *    This set of definitions "belongs" in Windows.
  236. ; *    But, there is a circularity in the headers where Windows includes Controls and
  237. ; *    Controls includes Windows. To break the circle, the information
  238. ; *    needed by Controls is moved from Windows to Quickdraw.
  239. ;
  240. ;    Set STRICT_WINDOWS to 1 to make sure your code 
  241. ;    doesn't access the window record directly
  242. ;
  243.     IF &TYPE('STRICT_WINDOWS') = 'UNDEFINED' THEN
  244.     STRICT_WINDOWS: SET 0
  245.     ENDIF
  246.     IF STRICT_WINDOWS  THEN
  247.     ELSE
  248.     ENDIF
  249.  
  250. kNoConstraint                    EQU        0
  251. kVerticalConstraint                EQU        1
  252. kHorizontalConstraint            EQU        2
  253.  
  254. ;
  255. ; *    Here ends the list of things that "belong" in Windows.
  256. RGBColor                 RECORD    0
  257. red                         ds.w    1                                    ;magnitude of red component
  258. green                     ds.w    1                                    ;magnitude of green component
  259. blue                     ds.w    1                                    ;magnitude of blue component
  260. sizeof                     EQU    6
  261.                         ENDR
  262.  
  263. ColorSpec                 RECORD    0
  264. value                     ds.w    1                                    ;index or other value
  265. rgb                         ds        RGBColor                            ;true color
  266. sizeof                     EQU    8
  267.                         ENDR
  268.  
  269. ColorTable                 RECORD    0
  270. ctSeed                     ds.l    1                                    ;unique identifier for table
  271. ctFlags                     ds.w    1                                    ;high bit: 0 = PixMap; 1 = device
  272. ctSize                     ds.w    1                                    ;number of entries in CTTable
  273. ctTable                     ds.l    2                                    ;array [0..0] of ColorSpec
  274. sizeof                     EQU    16
  275.                         ENDR
  276.  
  277. MatchRec                 RECORD    0
  278. red                         ds.w    1
  279. green                     ds.w    1
  280. blue                     ds.w    1
  281. matchData                 ds.l    1
  282. sizeof                     EQU    10
  283.                         ENDR
  284.  
  285. PixMap                     RECORD    0
  286. baseAddr                 ds.l    1                                    ;pointer to pixels
  287. rowBytes                 ds.w    1                                    ;offset to next line
  288. bounds                     ds        Rect                                ;encloses bitmap
  289. pmVersion                 ds.w    1                                    ;pixMap version number
  290. packType                 ds.w    1                                    ;defines packing format
  291. packSize                 ds.l    1                                    ;length of pixel data
  292. hRes                     ds.l    1                                    ;horiz. resolution (ppi)
  293. vRes                     ds.l    1                                    ;vert. resolution (ppi)
  294. pixelType                 ds.w    1                                    ;defines pixel type
  295. pixelSize                 ds.w    1                                    ;# bits in pixel
  296. cmpCount                 ds.w    1                                    ;# components in pixel
  297. cmpSize                     ds.w    1                                    ;# bits per component
  298. planeBytes                 ds.l    1                                    ;offset to next plane
  299. pmTable                     ds.l    1                                    ;color map for this pixMap
  300. pmReserved                 ds.l    1                                    ;for future use. MUST BE 0
  301. sizeof                     EQU    50
  302.                         ENDR
  303.  
  304. PixPat                     RECORD    0
  305. patType                     ds.w    1                                    ;type of pattern
  306. patMap                     ds.l    1                                    ;the pattern's pixMap
  307. patData                     ds.l    1                                    ;pixmap's data
  308. patXData                 ds.l    1                                    ;expanded Pattern data
  309. patXValid                 ds.w    1                                    ;flags whether expanded Pattern valid
  310. patXMap                     ds.l    1                                    ;Handle to expanded Pattern data
  311. pat1Data                 ds        Pattern                            ;old-Style pattern/RGB color
  312. sizeof                     EQU    28
  313.                         ENDR
  314.  
  315. CCrsr                     RECORD    0
  316. crsrType                 ds.w    1                                    ;type of cursor
  317. crsrMap                     ds.l    1                                    ;the cursor's pixmap
  318. crsrData                 ds.l    1                                    ;cursor's data
  319. crsrXData                 ds.l    1                                    ;expanded cursor data
  320. crsrXValid                 ds.w    1                                    ;depth of expanded data (0 if none)
  321. crsrXHandle                 ds.l    1                                    ;future use
  322. crsr1Data                 ds.l    8                                    ;one-bit cursor
  323. crsrMask                 ds.l    8                                    ;cursor's mask
  324. crsrHotSpot                 ds        Point                                ;cursor's hotspot
  325. crsrXTable                 ds.l    1                                    ;private
  326. crsrID                     ds.l    1                                    ;private
  327. sizeof                     EQU    96
  328.                         ENDR
  329.  
  330.     IF OLDROUTINELOCATIONS  THEN
  331. CIcon                     RECORD    0
  332. iconPMap                 ds        PixMap                                ;the icon's pixMap
  333. iconMask                 ds        BitMap                                ;the icon's mask
  334. iconBMap                 ds        BitMap                                ;the icon's bitMap
  335. iconData                 ds.l    1                                    ;the icon's data
  336. iconMaskData             ds.w    1                                    ;icon's mask and BitMap data
  337. sizeof                     EQU    84
  338.                         ENDR
  339.  
  340.     ENDIF
  341. GammaTbl                 RECORD    0
  342. gVersion                 ds.w    1                                    ;gamma version number
  343. gType                     ds.w    1                                    ;gamma data type
  344. gFormulaSize             ds.w    1                                    ;Formula data size
  345. gChanCnt                 ds.w    1                                    ;number of channels of data
  346. gDataCnt                 ds.w    1                                    ;number of values/channel
  347. gDataWidth                 ds.w    1                                    ;bits/corrected value (data packed to next larger byte size)
  348. gFormulaData             ds.w    1                                    ;data for formulas followed by gamma values
  349. sizeof                     EQU    14
  350.                         ENDR
  351.  
  352. ITab                     RECORD    0
  353. iTabSeed                 ds.l    1                                    ;copy of CTSeed from source CTable
  354. iTabRes                     ds.w    1                                    ;bits/channel resolution of iTable
  355. iTTable                     ds.b    1                                    ;byte colortable index values
  356. sizeof                     EQU    8
  357.                         ENDR
  358.  
  359. SProcRec                 RECORD    0
  360. nxtSrch                     ds.l    1                                    ;SProcHndl Handle to next SProcRec
  361. srchProc                 ds.l    1                                    ;search procedure proc ptr
  362. sizeof                     EQU    8
  363.                         ENDR
  364.  
  365. CProcRec                 RECORD    0
  366. nxtComp                     ds.l    1                                    ;CProcHndl Handle to next CProcRec
  367. compProc                 ds.l    1                                    ;complement procedure proc ptr
  368. sizeof                     EQU    8
  369.                         ENDR
  370.  
  371. GDevice                 RECORD    0
  372. gdRefNum                 ds.w    1                                    ;driver's unit number
  373. gdID                     ds.w    1                                    ;client ID for search procs
  374. gdType                     ds.w    1                                    ;fixed/CLUT/direct
  375. gdITable                 ds.l    1                                    ;Handle to inverse lookup table
  376. gdResPref                 ds.w    1                                    ;preferred resolution of GDITable
  377. gdSearchProc             ds.l    1                                    ;search proc list head
  378. gdCompProc                 ds.l    1                                    ;complement proc list
  379. gdFlags                     ds.w    1                                    ;grafDevice flags word
  380. gdPMap                     ds.l    1                                    ;describing pixMap
  381. gdRefCon                 ds.l    1                                    ;reference value
  382. gdNextGD                 ds.l    1                                    ;GDHandle Handle of next gDevice
  383. gdRect                     ds        Rect                                ; device's bounds in global coordinates
  384. gdMode                     ds.l    1                                    ;device's current mode
  385. gdCCBytes                 ds.w    1                                    ;depth of expanded cursor data
  386. gdCCDepth                 ds.w    1                                    ;depth of expanded cursor data
  387. gdCCXData                 ds.l    1                                    ;Handle to cursor's expanded data
  388. gdCCXMask                 ds.l    1                                    ;Handle to cursor's expanded mask
  389. gdReserved                 ds.l    1                                    ;future use. MUST BE 0
  390. sizeof                     EQU    62
  391.                         ENDR
  392.  
  393. GrafVars                 RECORD    0
  394. rgbOpColor                 ds        RGBColor                            ;color for addPin  subPin and average
  395. rgbHiliteColor             ds        RGBColor                            ;color for hiliting
  396. pmFgColor                 ds.l    1                                    ;palette Handle for foreground color
  397. pmFgIndex                 ds.w    1                                    ;index value for foreground
  398. pmBkColor                 ds.l    1                                    ;palette Handle for background color
  399. pmBkIndex                 ds.w    1                                    ;index value for background
  400. pmFlags                     ds.w    1                                    ;flags for Palette Manager
  401. sizeof                     EQU    26
  402.                         ENDR
  403.  
  404. CQDProcs                 RECORD    0
  405. textProc                 ds.l    1
  406. lineProc                 ds.l    1
  407. rectProc                 ds.l    1
  408. rRectProc                 ds.l    1
  409. ovalProc                 ds.l    1
  410. arcProc                     ds.l    1
  411. polyProc                 ds.l    1
  412. rgnProc                     ds.l    1
  413. bitsProc                 ds.l    1
  414. commentProc                 ds.l    1
  415. txMeasProc                 ds.l    1
  416. getPicProc                 ds.l    1
  417. putPicProc                 ds.l    1
  418. opcodeProc                 ds.l    1                                    ;fields added to QDProcs
  419. newProc1                 ds.l    1
  420. newProc2                 ds.l    1
  421. newProc3                 ds.l    1
  422. newProc4                 ds.l    1
  423. newProc5                 ds.l    1
  424. newProc6                 ds.l    1
  425. sizeof                     EQU    80
  426.                         ENDR
  427.  
  428. CGrafPort                 RECORD    0
  429. device                     ds.w    1
  430. portPixMap                 ds.l    1                                    ;port's pixel map
  431. portVersion                 ds.w    1                                    ;high 2 bits always set
  432. grafVars                 ds.l    1                                    ;Handle to more fields
  433. chExtra                     ds.w    1                                    ;character extra
  434. pnLocHFrac                 ds.w    1                                    ;pen fraction
  435. portRect                 ds        Rect
  436. visRgn                     ds.l    1
  437. clipRgn                     ds.l    1
  438. bkPixPat                 ds.l    1                                    ;background pattern
  439. rgbFgColor                 ds        RGBColor                            ;RGB components of fg
  440. rgbBkColor                 ds        RGBColor                            ;RGB components of bk
  441. pnLoc                     ds        Point
  442. pnSize                     ds        Point
  443. pnMode                     ds.w    1
  444. pnPixPat                 ds.l    1                                    ;pen's pattern
  445. fillPixPat                 ds.l    1                                    ;fill pattern
  446. pnVis                     ds.w    1
  447. txFont                     ds.w    1
  448. txFace                     ds.b    1                                    ;txFace is unpacked byte  push as short
  449. filler                     ds.b    1
  450. txMode                     ds.w    1
  451. txSize                     ds.w    1
  452. spExtra                     ds.l    1
  453. fgColor                     ds.l    1
  454. bkColor                     ds.l    1
  455. colrBit                     ds.w    1
  456. patStretch                 ds.w    1
  457. picSave                     ds.l    1
  458. rgnSave                     ds.l    1
  459. polySave                 ds.l    1
  460. grafProcs                 ds.l    1
  461. sizeof                     EQU    108
  462.                         ENDR
  463.  
  464. ReqListRec                 RECORD    0
  465. reqLSize                 ds.w    1                                    ;request list size
  466. reqLData                 ds.w    1                                    ;request list data
  467. sizeof                     EQU    4
  468.                         ENDR
  469.  
  470. OpenCPicParams             RECORD    0
  471. srcRect                     ds        Rect
  472. hRes                     ds.l    1
  473. vRes                     ds.l    1
  474. version                     ds.w    1
  475. reserved1                 ds.w    1
  476. reserved2                 ds.l    1
  477. sizeof                     EQU    24
  478.                         ENDR
  479.  
  480. QDGlobals                 RECORD    0
  481. privates                 ds.b    76
  482. randSeed                 ds.l    1
  483. screenBits                 ds        BitMap
  484. arrow                     ds        Cursor
  485. dkGray                     ds        Pattern
  486. ltGray                     ds        Pattern
  487. gray                     ds        Pattern
  488. black                     ds        Pattern
  489. white                     ds        Pattern
  490. thePort                     ds.l    1
  491. sizeof                     EQU    206
  492.                         ENDR
  493.  
  494.     IF GENERATING68K THEN
  495.         _InitGraf:    OPWORD    $A86E
  496.     ELSE
  497.         IMPORT    InitGraf
  498.     ENDIF
  499.  
  500.     IF GENERATING68K THEN
  501.         _OpenPort:    OPWORD    $A86F
  502.     ELSE
  503.         IMPORT    OpenPort
  504.     ENDIF
  505.  
  506.     IF GENERATING68K THEN
  507.         _InitPort:    OPWORD    $A86D
  508.     ELSE
  509.         IMPORT    InitPort
  510.     ENDIF
  511.  
  512.     IF GENERATING68K THEN
  513.         _ClosePort:    OPWORD    $A87D
  514.     ELSE
  515.         IMPORT    ClosePort
  516.     ENDIF
  517.  
  518.     IF GENERATING68K THEN
  519.         _SetPort:    OPWORD    $A873
  520.     ELSE
  521.         IMPORT    SetPort
  522.     ENDIF
  523.  
  524.     IF GENERATING68K THEN
  525.         _GetPort:    OPWORD    $A874
  526.     ELSE
  527.         IMPORT    GetPort
  528.     ENDIF
  529.  
  530.     IF GENERATING68K THEN
  531.         _GrafDevice:    OPWORD    $A872
  532.     ELSE
  533.         IMPORT    GrafDevice
  534.     ENDIF
  535.  
  536.     IF GENERATING68K THEN
  537.         _SetPortBits:    OPWORD    $A875
  538.     ELSE
  539.         IMPORT    SetPortBits
  540.     ENDIF
  541.  
  542.     IF GENERATING68K THEN
  543.         _PortSize:    OPWORD    $A876
  544.     ELSE
  545.         IMPORT    PortSize
  546.     ENDIF
  547.  
  548.     IF GENERATING68K THEN
  549.         _MovePortTo:    OPWORD    $A877
  550.     ELSE
  551.         IMPORT    MovePortTo
  552.     ENDIF
  553.  
  554.     IF GENERATING68K THEN
  555.         _SetOrigin:    OPWORD    $A878
  556.     ELSE
  557.         IMPORT    SetOrigin
  558.     ENDIF
  559.  
  560.     IF GENERATING68K THEN
  561.         _SetClip:    OPWORD    $A879
  562.     ELSE
  563.         IMPORT    SetClip
  564.     ENDIF
  565.  
  566.     IF GENERATING68K THEN
  567.         _GetClip:    OPWORD    $A87A
  568.     ELSE
  569.         IMPORT    GetClip
  570.     ENDIF
  571.  
  572.     IF GENERATING68K THEN
  573.         _ClipRect:    OPWORD    $A87B
  574.     ELSE
  575.         IMPORT    ClipRect
  576.     ENDIF
  577.  
  578.     IF GENERATING68K THEN
  579.         _BackPat:    OPWORD    $A87C
  580.     ELSE
  581.         IMPORT    BackPat
  582.     ENDIF
  583.  
  584.     IF GENERATING68K THEN
  585.         _InitCursor:    OPWORD    $A850
  586.     ELSE
  587.         IMPORT    InitCursor
  588.     ENDIF
  589.  
  590.     IF GENERATING68K THEN
  591.         _SetCursor:    OPWORD    $A851
  592.     ELSE
  593.         IMPORT    SetCursor
  594.     ENDIF
  595.  
  596.     IF GENERATING68K THEN
  597.         _HideCursor:    OPWORD    $A852
  598.     ELSE
  599.         IMPORT    HideCursor
  600.     ENDIF
  601.  
  602.     IF GENERATING68K THEN
  603.         _ShowCursor:    OPWORD    $A853
  604.     ELSE
  605.         IMPORT    ShowCursor
  606.     ENDIF
  607.  
  608.     IF GENERATING68K THEN
  609.         _ObscureCursor:    OPWORD    $A856
  610.     ELSE
  611.         IMPORT    ObscureCursor
  612.     ENDIF
  613.  
  614.     IF GENERATING68K THEN
  615.         _HidePen:    OPWORD    $A896
  616.     ELSE
  617.         IMPORT    HidePen
  618.     ENDIF
  619.  
  620.     IF GENERATING68K THEN
  621.         _ShowPen:    OPWORD    $A897
  622.     ELSE
  623.         IMPORT    ShowPen
  624.     ENDIF
  625.  
  626.     IF GENERATING68K THEN
  627.         _GetPen:    OPWORD    $A89A
  628.     ELSE
  629.         IMPORT    GetPen
  630.     ENDIF
  631.  
  632.     IF GENERATING68K THEN
  633.         _GetPenState:    OPWORD    $A898
  634.     ELSE
  635.         IMPORT    GetPenState
  636.     ENDIF
  637.  
  638.     IF GENERATING68K THEN
  639.         _SetPenState:    OPWORD    $A899
  640.     ELSE
  641.         IMPORT    SetPenState
  642.     ENDIF
  643.  
  644.     IF GENERATING68K THEN
  645.         _PenSize:    OPWORD    $A89B
  646.     ELSE
  647.         IMPORT    PenSize
  648.     ENDIF
  649.  
  650.     IF GENERATING68K THEN
  651.         _PenMode:    OPWORD    $A89C
  652.     ELSE
  653.         IMPORT    PenMode
  654.     ENDIF
  655.  
  656.     IF GENERATING68K THEN
  657.         _PenPat:    OPWORD    $A89D
  658.     ELSE
  659.         IMPORT    PenPat
  660.     ENDIF
  661.  
  662.     IF GENERATING68K THEN
  663.         _PenNormal:    OPWORD    $A89E
  664.     ELSE
  665.         IMPORT    PenNormal
  666.     ENDIF
  667.  
  668.     IF GENERATING68K THEN
  669.         _MoveTo:    OPWORD    $A893
  670.     ELSE
  671.         IMPORT    MoveTo
  672.     ENDIF
  673.  
  674.     IF GENERATING68K THEN
  675.         _Move:    OPWORD    $A894
  676.     ELSE
  677.         IMPORT    Move
  678.     ENDIF
  679.  
  680.     IF GENERATING68K THEN
  681.         _LineTo:    OPWORD    $A891
  682.     ELSE
  683.         IMPORT    LineTo
  684.     ENDIF
  685.  
  686.     IF GENERATING68K THEN
  687.         _Line:    OPWORD    $A892
  688.     ELSE
  689.         IMPORT    Line
  690.     ENDIF
  691.  
  692.     IF GENERATING68K THEN
  693.         _ForeColor:    OPWORD    $A862
  694.     ELSE
  695.         IMPORT    ForeColor
  696.     ENDIF
  697.  
  698.     IF GENERATING68K THEN
  699.         _BackColor:    OPWORD    $A863
  700.     ELSE
  701.         IMPORT    BackColor
  702.     ENDIF
  703.  
  704.     IF GENERATING68K THEN
  705.         _ColorBit:    OPWORD    $A864
  706.     ELSE
  707.         IMPORT    ColorBit
  708.     ENDIF
  709.  
  710.     IF GENERATING68K THEN
  711.         _SetRect:    OPWORD    $A8A7
  712.     ELSE
  713.         IMPORT    SetRect
  714.     ENDIF
  715.  
  716.     IF GENERATING68K THEN
  717.         _OffsetRect:    OPWORD    $A8A8
  718.     ELSE
  719.         IMPORT    OffsetRect
  720.     ENDIF
  721.  
  722.     IF GENERATING68K THEN
  723.         _InsetRect:    OPWORD    $A8A9
  724.     ELSE
  725.         IMPORT    InsetRect
  726.     ENDIF
  727.  
  728.     IF GENERATING68K THEN
  729.         _SectRect:    OPWORD    $A8AA
  730.     ELSE
  731.         IMPORT    SectRect
  732.     ENDIF
  733.  
  734.     IF GENERATING68K THEN
  735.         _UnionRect:    OPWORD    $A8AB
  736.     ELSE
  737.         IMPORT    UnionRect
  738.     ENDIF
  739.  
  740.     IF GENERATING68K THEN
  741.         _EqualRect:    OPWORD    $A8A6
  742.     ELSE
  743.         IMPORT    EqualRect
  744.     ENDIF
  745.  
  746.     IF GENERATING68K THEN
  747.         _EmptyRect:    OPWORD    $A8AE
  748.     ELSE
  749.         IMPORT    EmptyRect
  750.     ENDIF
  751.  
  752.     IF GENERATING68K THEN
  753.         _FrameRect:    OPWORD    $A8A1
  754.     ELSE
  755.         IMPORT    FrameRect
  756.     ENDIF
  757.  
  758.     IF GENERATING68K THEN
  759.         _PaintRect:    OPWORD    $A8A2
  760.     ELSE
  761.         IMPORT    PaintRect
  762.     ENDIF
  763.  
  764.     IF GENERATING68K THEN
  765.         _EraseRect:    OPWORD    $A8A3
  766.     ELSE
  767.         IMPORT    EraseRect
  768.     ENDIF
  769.  
  770.     IF GENERATING68K THEN
  771.         _InvertRect:    OPWORD    $A8A4
  772.     ELSE
  773.         IMPORT    InvertRect
  774.     ENDIF
  775.  
  776.     IF GENERATING68K THEN
  777.         _FillRect:    OPWORD    $A8A5
  778.     ELSE
  779.         IMPORT    FillRect
  780.     ENDIF
  781.  
  782.     IF GENERATING68K THEN
  783.         _FrameOval:    OPWORD    $A8B7
  784.     ELSE
  785.         IMPORT    FrameOval
  786.     ENDIF
  787.  
  788.     IF GENERATING68K THEN
  789.         _PaintOval:    OPWORD    $A8B8
  790.     ELSE
  791.         IMPORT    PaintOval
  792.     ENDIF
  793.  
  794.     IF GENERATING68K THEN
  795.         _EraseOval:    OPWORD    $A8B9
  796.     ELSE
  797.         IMPORT    EraseOval
  798.     ENDIF
  799.  
  800.     IF GENERATING68K THEN
  801.         _InvertOval:    OPWORD    $A8BA
  802.     ELSE
  803.         IMPORT    InvertOval
  804.     ENDIF
  805.  
  806.     IF GENERATING68K THEN
  807.         _FillOval:    OPWORD    $A8BB
  808.     ELSE
  809.         IMPORT    FillOval
  810.     ENDIF
  811.  
  812.     IF GENERATING68K THEN
  813.         _FrameRoundRect:    OPWORD    $A8B0
  814.     ELSE
  815.         IMPORT    FrameRoundRect
  816.     ENDIF
  817.  
  818.     IF GENERATING68K THEN
  819.         _PaintRoundRect:    OPWORD    $A8B1
  820.     ELSE
  821.         IMPORT    PaintRoundRect
  822.     ENDIF
  823.  
  824.     IF GENERATING68K THEN
  825.         _EraseRoundRect:    OPWORD    $A8B2
  826.     ELSE
  827.         IMPORT    EraseRoundRect
  828.     ENDIF
  829.  
  830.     IF GENERATING68K THEN
  831.         _InvertRoundRect:    OPWORD    $A8B3
  832.     ELSE
  833.         IMPORT    InvertRoundRect
  834.     ENDIF
  835.  
  836.     IF GENERATING68K THEN
  837.         _FillRoundRect:    OPWORD    $A8B4
  838.     ELSE
  839.         IMPORT    FillRoundRect
  840.     ENDIF
  841.  
  842.     IF GENERATING68K THEN
  843.         _FrameArc:    OPWORD    $A8BE
  844.     ELSE
  845.         IMPORT    FrameArc
  846.     ENDIF
  847.  
  848.     IF GENERATING68K THEN
  849.         _PaintArc:    OPWORD    $A8BF
  850.     ELSE
  851.         IMPORT    PaintArc
  852.     ENDIF
  853.  
  854.     IF GENERATING68K THEN
  855.         _EraseArc:    OPWORD    $A8C0
  856.     ELSE
  857.         IMPORT    EraseArc
  858.     ENDIF
  859.  
  860.     IF GENERATING68K THEN
  861.         _InvertArc:    OPWORD    $A8C1
  862.     ELSE
  863.         IMPORT    InvertArc
  864.     ENDIF
  865.  
  866.     IF GENERATING68K THEN
  867.         _FillArc:    OPWORD    $A8C2
  868.     ELSE
  869.         IMPORT    FillArc
  870.     ENDIF
  871.  
  872.     IF GENERATING68K THEN
  873.         _NewRgn:    OPWORD    $A8D8
  874.     ELSE
  875.         IMPORT    NewRgn
  876.     ENDIF
  877.  
  878.     IF GENERATING68K THEN
  879.         _OpenRgn:    OPWORD    $A8DA
  880.     ELSE
  881.         IMPORT    OpenRgn
  882.     ENDIF
  883.  
  884.     IF GENERATING68K THEN
  885.         _CloseRgn:    OPWORD    $A8DB
  886.     ELSE
  887.         IMPORT    CloseRgn
  888.     ENDIF
  889.  
  890.     IF ¬ SystemSevenOrLater  THEN
  891.     ENDIF
  892.     IF GENERATING68K THEN
  893.         _BitMapToRegion:    OPWORD    $A8D7
  894.     ELSE
  895.         IMPORT    BitMapToRegion
  896.     ENDIF
  897.  
  898.     IF GENERATING68K THEN
  899.         _DisposeRgn:    OPWORD    $A8D9
  900.     ELSE
  901.         IMPORT    DisposeRgn
  902.     ENDIF
  903.  
  904.     IF GENERATING68K THEN
  905.         _CopyRgn:    OPWORD    $A8DC
  906.     ELSE
  907.         IMPORT    CopyRgn
  908.     ENDIF
  909.  
  910.     IF GENERATING68K THEN
  911.         _SetEmptyRgn:    OPWORD    $A8DD
  912.     ELSE
  913.         IMPORT    SetEmptyRgn
  914.     ENDIF
  915.  
  916.     IF GENERATING68K THEN
  917.         _SetRectRgn:    OPWORD    $A8DE
  918.     ELSE
  919.         IMPORT    SetRectRgn
  920.     ENDIF
  921.  
  922.     IF GENERATING68K THEN
  923.         _RectRgn:    OPWORD    $A8DF
  924.     ELSE
  925.         IMPORT    RectRgn
  926.     ENDIF
  927.  
  928.     IF GENERATING68K THEN
  929.         _OffsetRgn:    OPWORD    $A8E0
  930.     ELSE
  931.         IMPORT    OffsetRgn
  932.     ENDIF
  933.  
  934.     IF GENERATING68K THEN
  935.         _InsetRgn:    OPWORD    $A8E1
  936.     ELSE
  937.         IMPORT    InsetRgn
  938.     ENDIF
  939.  
  940.     IF GENERATING68K THEN
  941.         _SectRgn:    OPWORD    $A8E4
  942.     ELSE
  943.         IMPORT    SectRgn
  944.     ENDIF
  945.  
  946.     IF GENERATING68K THEN
  947.         _UnionRgn:    OPWORD    $A8E5
  948.     ELSE
  949.         IMPORT    UnionRgn
  950.     ENDIF
  951.  
  952.     IF GENERATING68K THEN
  953.         _DiffRgn:    OPWORD    $A8E6
  954.     ELSE
  955.         IMPORT    DiffRgn
  956.     ENDIF
  957.  
  958.     IF GENERATING68K THEN
  959.         _XorRgn:    OPWORD    $A8E7
  960.     ELSE
  961.         IMPORT    XorRgn
  962.     ENDIF
  963.  
  964.     IF GENERATING68K THEN
  965.         _RectInRgn:    OPWORD    $A8E9
  966.     ELSE
  967.         IMPORT    RectInRgn
  968.     ENDIF
  969.  
  970.     IF GENERATING68K THEN
  971.         _EqualRgn:    OPWORD    $A8E3
  972.     ELSE
  973.         IMPORT    EqualRgn
  974.     ENDIF
  975.  
  976.     IF GENERATING68K THEN
  977.         _EmptyRgn:    OPWORD    $A8E2
  978.     ELSE
  979.         IMPORT    EmptyRgn
  980.     ENDIF
  981.  
  982.     IF GENERATING68K THEN
  983.         _FrameRgn:    OPWORD    $A8D2
  984.     ELSE
  985.         IMPORT    FrameRgn
  986.     ENDIF
  987.  
  988.     IF GENERATING68K THEN
  989.         _PaintRgn:    OPWORD    $A8D3
  990.     ELSE
  991.         IMPORT    PaintRgn
  992.     ENDIF
  993.  
  994.     IF GENERATING68K THEN
  995.         _EraseRgn:    OPWORD    $A8D4
  996.     ELSE
  997.         IMPORT    EraseRgn
  998.     ENDIF
  999.  
  1000.     IF GENERATING68K THEN
  1001.         _InvertRgn:    OPWORD    $A8D5
  1002.     ELSE
  1003.         IMPORT    InvertRgn
  1004.     ENDIF
  1005.  
  1006.     IF GENERATING68K THEN
  1007.         _FillRgn:    OPWORD    $A8D6
  1008.     ELSE
  1009.         IMPORT    FillRgn
  1010.     ENDIF
  1011.  
  1012.     IF GENERATING68K THEN
  1013.         _ScrollRect:    OPWORD    $A8EF
  1014.     ELSE
  1015.         IMPORT    ScrollRect
  1016.     ENDIF
  1017.  
  1018.     IF GENERATING68K THEN
  1019.         _CopyBits:    OPWORD    $A8EC
  1020.     ELSE
  1021.         IMPORT    CopyBits
  1022.     ENDIF
  1023.  
  1024.     IF GENERATING68K THEN
  1025.         _SeedFill:    OPWORD    $A839
  1026.     ELSE
  1027.         IMPORT    SeedFill
  1028.     ENDIF
  1029.  
  1030.     IF GENERATING68K THEN
  1031.         _CalcMask:    OPWORD    $A838
  1032.     ELSE
  1033.         IMPORT    CalcMask
  1034.     ENDIF
  1035.  
  1036.     IF GENERATING68K THEN
  1037.         _CopyMask:    OPWORD    $A817
  1038.     ELSE
  1039.         IMPORT    CopyMask
  1040.     ENDIF
  1041.  
  1042.     IF GENERATING68K THEN
  1043.         _OpenPicture:    OPWORD    $A8F3
  1044.     ELSE
  1045.         IMPORT    OpenPicture
  1046.     ENDIF
  1047.  
  1048.     IF GENERATING68K THEN
  1049.         _PicComment:    OPWORD    $A8F2
  1050.     ELSE
  1051.         IMPORT    PicComment
  1052.     ENDIF
  1053.  
  1054.     IF GENERATING68K THEN
  1055.         _ClosePicture:    OPWORD    $A8F4
  1056.     ELSE
  1057.         IMPORT    ClosePicture
  1058.     ENDIF
  1059.  
  1060.     IF GENERATING68K THEN
  1061.         _DrawPicture:    OPWORD    $A8F6
  1062.     ELSE
  1063.         IMPORT    DrawPicture
  1064.     ENDIF
  1065.  
  1066.     IF GENERATING68K THEN
  1067.         _KillPicture:    OPWORD    $A8F5
  1068.     ELSE
  1069.         IMPORT    KillPicture
  1070.     ENDIF
  1071.  
  1072.     IF GENERATING68K THEN
  1073.         _OpenPoly:    OPWORD    $A8CB
  1074.     ELSE
  1075.         IMPORT    OpenPoly
  1076.     ENDIF
  1077.  
  1078.     IF GENERATING68K THEN
  1079.         _ClosePoly:    OPWORD    $A8CC
  1080.     ELSE
  1081.         IMPORT    ClosePoly
  1082.     ENDIF
  1083.  
  1084.     IF GENERATING68K THEN
  1085.         _KillPoly:    OPWORD    $A8CD
  1086.     ELSE
  1087.         IMPORT    KillPoly
  1088.     ENDIF
  1089.  
  1090.     IF GENERATING68K THEN
  1091.         _OffsetPoly:    OPWORD    $A8CE
  1092.     ELSE
  1093.         IMPORT    OffsetPoly
  1094.     ENDIF
  1095.  
  1096.     IF GENERATING68K THEN
  1097.         _FramePoly:    OPWORD    $A8C6
  1098.     ELSE
  1099.         IMPORT    FramePoly
  1100.     ENDIF
  1101.  
  1102.     IF GENERATING68K THEN
  1103.         _PaintPoly:    OPWORD    $A8C7
  1104.     ELSE
  1105.         IMPORT    PaintPoly
  1106.     ENDIF
  1107.  
  1108.     IF GENERATING68K THEN
  1109.         _ErasePoly:    OPWORD    $A8C8
  1110.     ELSE
  1111.         IMPORT    ErasePoly
  1112.     ENDIF
  1113.  
  1114.     IF GENERATING68K THEN
  1115.         _InvertPoly:    OPWORD    $A8C9
  1116.     ELSE
  1117.         IMPORT    InvertPoly
  1118.     ENDIF
  1119.  
  1120.     IF GENERATING68K THEN
  1121.         _FillPoly:    OPWORD    $A8CA
  1122.     ELSE
  1123.         IMPORT    FillPoly
  1124.     ENDIF
  1125.  
  1126.     IF GENERATING68K THEN
  1127.         _SetPt:    OPWORD    $A880
  1128.     ELSE
  1129.         IMPORT    SetPt
  1130.     ENDIF
  1131.  
  1132.     IF GENERATING68K THEN
  1133.         _LocalToGlobal:    OPWORD    $A870
  1134.     ELSE
  1135.         IMPORT    LocalToGlobal
  1136.     ENDIF
  1137.  
  1138.     IF GENERATING68K THEN
  1139.         _GlobalToLocal:    OPWORD    $A871
  1140.     ELSE
  1141.         IMPORT    GlobalToLocal
  1142.     ENDIF
  1143.  
  1144.     IF GENERATING68K THEN
  1145.         _Random:    OPWORD    $A861
  1146.     ELSE
  1147.         IMPORT    Random
  1148.     ENDIF
  1149.  
  1150.     IF GENERATING68K THEN
  1151.         _StuffHex:    OPWORD    $A866
  1152.     ELSE
  1153.         IMPORT    StuffHex
  1154.     ENDIF
  1155.  
  1156.     IF GENERATING68K THEN
  1157.         _GetPixel:    OPWORD    $A865
  1158.     ELSE
  1159.         IMPORT    GetPixel
  1160.     ENDIF
  1161.  
  1162.     IF GENERATING68K THEN
  1163.         _ScalePt:    OPWORD    $A8F8
  1164.     ELSE
  1165.         IMPORT    ScalePt
  1166.     ENDIF
  1167.  
  1168.     IF GENERATING68K THEN
  1169.         _MapPt:    OPWORD    $A8F9
  1170.     ELSE
  1171.         IMPORT    MapPt
  1172.     ENDIF
  1173.  
  1174.     IF GENERATING68K THEN
  1175.         _MapRect:    OPWORD    $A8FA
  1176.     ELSE
  1177.         IMPORT    MapRect
  1178.     ENDIF
  1179.  
  1180.     IF GENERATING68K THEN
  1181.         _MapRgn:    OPWORD    $A8FB
  1182.     ELSE
  1183.         IMPORT    MapRgn
  1184.     ENDIF
  1185.  
  1186.     IF GENERATING68K THEN
  1187.         _MapPoly:    OPWORD    $A8FC
  1188.     ELSE
  1189.         IMPORT    MapPoly
  1190.     ENDIF
  1191.  
  1192.     IF GENERATING68K THEN
  1193.         _SetStdProcs:    OPWORD    $A8EA
  1194.     ELSE
  1195.         IMPORT    SetStdProcs
  1196.     ENDIF
  1197.  
  1198.     IF GENERATING68K THEN
  1199.         _StdRect:    OPWORD    $A8A0
  1200.     ELSE
  1201.         IMPORT    StdRect
  1202.     ENDIF
  1203.  
  1204.     IF GENERATING68K THEN
  1205.         _StdRRect:    OPWORD    $A8AF
  1206.     ELSE
  1207.         IMPORT    StdRRect
  1208.     ENDIF
  1209.  
  1210.     IF GENERATING68K THEN
  1211.         _StdOval:    OPWORD    $A8B6
  1212.     ELSE
  1213.         IMPORT    StdOval
  1214.     ENDIF
  1215.  
  1216.     IF GENERATING68K THEN
  1217.         _StdArc:    OPWORD    $A8BD
  1218.     ELSE
  1219.         IMPORT    StdArc
  1220.     ENDIF
  1221.  
  1222.     IF GENERATING68K THEN
  1223.         _StdPoly:    OPWORD    $A8C5
  1224.     ELSE
  1225.         IMPORT    StdPoly
  1226.     ENDIF
  1227.  
  1228.     IF GENERATING68K THEN
  1229.         _StdRgn:    OPWORD    $A8D1
  1230.     ELSE
  1231.         IMPORT    StdRgn
  1232.     ENDIF
  1233.  
  1234.     IF GENERATING68K THEN
  1235.         _StdBits:    OPWORD    $A8EB
  1236.     ELSE
  1237.         IMPORT    StdBits
  1238.     ENDIF
  1239.  
  1240.     IF GENERATING68K THEN
  1241.         _StdComment:    OPWORD    $A8F1
  1242.     ELSE
  1243.         IMPORT    StdComment
  1244.     ENDIF
  1245.  
  1246.     IF GENERATING68K THEN
  1247.         _StdGetPic:    OPWORD    $A8EE
  1248.     ELSE
  1249.         IMPORT    StdGetPic
  1250.     ENDIF
  1251.  
  1252.     IF GENERATING68K THEN
  1253.         _StdPutPic:    OPWORD    $A8F0
  1254.     ELSE
  1255.         IMPORT    StdPutPic
  1256.     ENDIF
  1257.  
  1258.     IF GENERATING68K THEN
  1259.         _AddPt:    OPWORD    $A87E
  1260.     ELSE
  1261.         IMPORT    AddPt
  1262.     ENDIF
  1263.  
  1264.     IF GENERATING68K THEN
  1265.         _EqualPt:    OPWORD    $A881
  1266.     ELSE
  1267.         IMPORT    EqualPt
  1268.     ENDIF
  1269.  
  1270.     IF GENERATING68K THEN
  1271.         _PtInRect:    OPWORD    $A8AD
  1272.     ELSE
  1273.         IMPORT    PtInRect
  1274.     ENDIF
  1275.  
  1276.     IF GENERATING68K THEN
  1277.         _Pt2Rect:    OPWORD    $A8AC
  1278.     ELSE
  1279.         IMPORT    Pt2Rect
  1280.     ENDIF
  1281.  
  1282.     IF GENERATING68K THEN
  1283.         _PtToAngle:    OPWORD    $A8C3
  1284.     ELSE
  1285.         IMPORT    PtToAngle
  1286.     ENDIF
  1287.  
  1288.     IF GENERATING68K THEN
  1289.         _SubPt:    OPWORD    $A87F
  1290.     ELSE
  1291.         IMPORT    SubPt
  1292.     ENDIF
  1293.  
  1294.     IF GENERATING68K THEN
  1295.         _PtInRgn:    OPWORD    $A8E8
  1296.     ELSE
  1297.         IMPORT    PtInRgn
  1298.     ENDIF
  1299.  
  1300.     IF GENERATING68K THEN
  1301.         _StdLine:    OPWORD    $A890
  1302.     ELSE
  1303.         IMPORT    StdLine
  1304.     ENDIF
  1305.  
  1306.     IF GENERATING68K THEN
  1307.         _OpenCPort:    OPWORD    $AA00
  1308.     ELSE
  1309.         IMPORT    OpenCPort
  1310.     ENDIF
  1311.  
  1312.     IF GENERATING68K THEN
  1313.         _InitCPort:    OPWORD    $AA01
  1314.     ELSE
  1315.         IMPORT    InitCPort
  1316.     ENDIF
  1317.  
  1318.     IF GENERATING68K THEN
  1319.         _CloseCPort:    OPWORD    $A87D
  1320.     ELSE
  1321.         IMPORT    CloseCPort
  1322.     ENDIF
  1323.  
  1324.     IF GENERATING68K THEN
  1325.         _NewPixMap:    OPWORD    $AA03
  1326.     ELSE
  1327.         IMPORT    NewPixMap
  1328.     ENDIF
  1329.  
  1330.     IF GENERATING68K THEN
  1331.         _DisposePixMap:    OPWORD    $AA04
  1332.     ELSE
  1333.         IMPORT    DisposePixMap
  1334.     ENDIF
  1335.  
  1336.     IF GENERATING68K THEN
  1337.         _CopyPixMap:    OPWORD    $AA05
  1338.     ELSE
  1339.         IMPORT    CopyPixMap
  1340.     ENDIF
  1341.  
  1342.     IF GENERATING68K THEN
  1343.         _NewPixPat:    OPWORD    $AA07
  1344.     ELSE
  1345.         IMPORT    NewPixPat
  1346.     ENDIF
  1347.  
  1348.     IF GENERATING68K THEN
  1349.         _DisposePixPat:    OPWORD    $AA08
  1350.     ELSE
  1351.         IMPORT    DisposePixPat
  1352.     ENDIF
  1353.  
  1354.     IF GENERATING68K THEN
  1355.         _CopyPixPat:    OPWORD    $AA09
  1356.     ELSE
  1357.         IMPORT    CopyPixPat
  1358.     ENDIF
  1359.  
  1360.     IF GENERATING68K THEN
  1361.         _PenPixPat:    OPWORD    $AA0A
  1362.     ELSE
  1363.         IMPORT    PenPixPat
  1364.     ENDIF
  1365.  
  1366.     IF GENERATING68K THEN
  1367.         _BackPixPat:    OPWORD    $AA0B
  1368.     ELSE
  1369.         IMPORT    BackPixPat
  1370.     ENDIF
  1371.  
  1372.     IF GENERATING68K THEN
  1373.         _GetPixPat:    OPWORD    $AA0C
  1374.     ELSE
  1375.         IMPORT    GetPixPat
  1376.     ENDIF
  1377.  
  1378.     IF GENERATING68K THEN
  1379.         _MakeRGBPat:    OPWORD    $AA0D
  1380.     ELSE
  1381.         IMPORT    MakeRGBPat
  1382.     ENDIF
  1383.  
  1384.     IF GENERATING68K THEN
  1385.         _FillCRect:    OPWORD    $AA0E
  1386.     ELSE
  1387.         IMPORT    FillCRect
  1388.     ENDIF
  1389.  
  1390.     IF GENERATING68K THEN
  1391.         _FillCOval:    OPWORD    $AA0F
  1392.     ELSE
  1393.         IMPORT    FillCOval
  1394.     ENDIF
  1395.  
  1396.     IF GENERATING68K THEN
  1397.         _FillCRoundRect:    OPWORD    $AA10
  1398.     ELSE
  1399.         IMPORT    FillCRoundRect
  1400.     ENDIF
  1401.  
  1402.     IF GENERATING68K THEN
  1403.         _FillCArc:    OPWORD    $AA11
  1404.     ELSE
  1405.         IMPORT    FillCArc
  1406.     ENDIF
  1407.  
  1408.     IF GENERATING68K THEN
  1409.         _FillCRgn:    OPWORD    $AA12
  1410.     ELSE
  1411.         IMPORT    FillCRgn
  1412.     ENDIF
  1413.  
  1414.     IF GENERATING68K THEN
  1415.         _FillCPoly:    OPWORD    $AA13
  1416.     ELSE
  1417.         IMPORT    FillCPoly
  1418.     ENDIF
  1419.  
  1420.     IF GENERATING68K THEN
  1421.         _RGBForeColor:    OPWORD    $AA14
  1422.     ELSE
  1423.         IMPORT    RGBForeColor
  1424.     ENDIF
  1425.  
  1426.     IF GENERATING68K THEN
  1427.         _RGBBackColor:    OPWORD    $AA15
  1428.     ELSE
  1429.         IMPORT    RGBBackColor
  1430.     ENDIF
  1431.  
  1432.     IF GENERATING68K THEN
  1433.         _SetCPixel:    OPWORD    $AA16
  1434.     ELSE
  1435.         IMPORT    SetCPixel
  1436.     ENDIF
  1437.  
  1438.     IF GENERATING68K THEN
  1439.         _SetPortPix:    OPWORD    $AA06
  1440.     ELSE
  1441.         IMPORT    SetPortPix
  1442.     ENDIF
  1443.  
  1444.     IF GENERATING68K THEN
  1445.         _GetCPixel:    OPWORD    $AA17
  1446.     ELSE
  1447.         IMPORT    GetCPixel
  1448.     ENDIF
  1449.  
  1450.     IF GENERATING68K THEN
  1451.         _GetForeColor:    OPWORD    $AA19
  1452.     ELSE
  1453.         IMPORT    GetForeColor
  1454.     ENDIF
  1455.  
  1456.     IF GENERATING68K THEN
  1457.         _GetBackColor:    OPWORD    $AA1A
  1458.     ELSE
  1459.         IMPORT    GetBackColor
  1460.     ENDIF
  1461.  
  1462.     IF GENERATING68K THEN
  1463.         _SeedCFill:    OPWORD    $AA50
  1464.     ELSE
  1465.         IMPORT    SeedCFill
  1466.     ENDIF
  1467.  
  1468.     IF GENERATING68K THEN
  1469.         _CalcCMask:    OPWORD    $AA4F
  1470.     ELSE
  1471.         IMPORT    CalcCMask
  1472.     ENDIF
  1473.  
  1474.     IF GENERATING68K THEN
  1475.         _OpenCPicture:    OPWORD    $AA20
  1476.     ELSE
  1477.         IMPORT    OpenCPicture
  1478.     ENDIF
  1479.  
  1480.     IF GENERATING68K THEN
  1481.         _OpColor:    OPWORD    $AA21
  1482.     ELSE
  1483.         IMPORT    OpColor
  1484.     ENDIF
  1485.  
  1486.     IF GENERATING68K THEN
  1487.         _HiliteColor:    OPWORD    $AA22
  1488.     ELSE
  1489.         IMPORT    HiliteColor
  1490.     ENDIF
  1491.  
  1492.     IF GENERATING68K THEN
  1493.         _DisposeCTable:    OPWORD    $AA24
  1494.     ELSE
  1495.         IMPORT    DisposeCTable
  1496.     ENDIF
  1497.  
  1498.     IF GENERATING68K THEN
  1499.         _GetCTable:    OPWORD    $AA18
  1500.     ELSE
  1501.         IMPORT    GetCTable
  1502.     ENDIF
  1503.  
  1504.     IF GENERATING68K THEN
  1505.         _GetCCursor:    OPWORD    $AA1B
  1506.     ELSE
  1507.         IMPORT    GetCCursor
  1508.     ENDIF
  1509.  
  1510.     IF GENERATING68K THEN
  1511.         _SetCCursor:    OPWORD    $AA1C
  1512.     ELSE
  1513.         IMPORT    SetCCursor
  1514.     ENDIF
  1515.  
  1516.     IF GENERATING68K THEN
  1517.         _AllocCursor:    OPWORD    $AA1D
  1518.     ELSE
  1519.         IMPORT    AllocCursor
  1520.     ENDIF
  1521.  
  1522.     IF GENERATING68K THEN
  1523.         _DisposeCCursor:    OPWORD    $AA26
  1524.     ELSE
  1525.         IMPORT    DisposeCCursor
  1526.     ENDIF
  1527.  
  1528.     IF OLDROUTINELOCATIONS  THEN
  1529.     IF GENERATING68K THEN
  1530.         _GetCIcon:    OPWORD    $AA1E
  1531.     ELSE
  1532.         IMPORT    GetCIcon
  1533.     ENDIF
  1534.  
  1535.     IF GENERATING68K THEN
  1536.         _PlotCIcon:    OPWORD    $AA1F
  1537.     ELSE
  1538.         IMPORT    PlotCIcon
  1539.     ENDIF
  1540.  
  1541.     IF GENERATING68K THEN
  1542.         _DisposeCIcon:    OPWORD    $AA25
  1543.     ELSE
  1544.         IMPORT    DisposeCIcon
  1545.     ENDIF
  1546.  
  1547.     ENDIF
  1548.     IF GENERATING68K THEN
  1549.         _SetStdCProcs:    OPWORD    $AA4E
  1550.     ELSE
  1551.         IMPORT    SetStdCProcs
  1552.     ENDIF
  1553.  
  1554.     IF GENERATING68K THEN
  1555.         _GetMaxDevice:    OPWORD    $AA27
  1556.     ELSE
  1557.         IMPORT    GetMaxDevice
  1558.     ENDIF
  1559.  
  1560.     IF GENERATING68K THEN
  1561.         _GetCTSeed:    OPWORD    $AA28
  1562.     ELSE
  1563.         IMPORT    GetCTSeed
  1564.     ENDIF
  1565.  
  1566.     IF GENERATING68K THEN
  1567.         _GetDeviceList:    OPWORD    $AA29
  1568.     ELSE
  1569.         IMPORT    GetDeviceList
  1570.     ENDIF
  1571.  
  1572.     IF GENERATING68K THEN
  1573.         _GetMainDevice:    OPWORD    $AA2A
  1574.     ELSE
  1575.         IMPORT    GetMainDevice
  1576.     ENDIF
  1577.  
  1578.     IF GENERATING68K THEN
  1579.         _GetNextDevice:    OPWORD    $AA2B
  1580.     ELSE
  1581.         IMPORT    GetNextDevice
  1582.     ENDIF
  1583.  
  1584.     IF GENERATING68K THEN
  1585.         _TestDeviceAttribute:    OPWORD    $AA2C
  1586.     ELSE
  1587.         IMPORT    TestDeviceAttribute
  1588.     ENDIF
  1589.  
  1590.     IF GENERATING68K THEN
  1591.         _SetDeviceAttribute:    OPWORD    $AA2D
  1592.     ELSE
  1593.         IMPORT    SetDeviceAttribute
  1594.     ENDIF
  1595.  
  1596.     IF GENERATING68K THEN
  1597.         _InitGDevice:    OPWORD    $AA2E
  1598.     ELSE
  1599.         IMPORT    InitGDevice
  1600.     ENDIF
  1601.  
  1602.     IF GENERATING68K THEN
  1603.         _NewGDevice:    OPWORD    $AA2F
  1604.     ELSE
  1605.         IMPORT    NewGDevice
  1606.     ENDIF
  1607.  
  1608.     IF GENERATING68K THEN
  1609.         _DisposeGDevice:    OPWORD    $AA30
  1610.     ELSE
  1611.         IMPORT    DisposeGDevice
  1612.     ENDIF
  1613.  
  1614.     IF GENERATING68K THEN
  1615.         _SetGDevice:    OPWORD    $AA31
  1616.     ELSE
  1617.         IMPORT    SetGDevice
  1618.     ENDIF
  1619.  
  1620.     IF GENERATING68K THEN
  1621.         _GetGDevice:    OPWORD    $AA32
  1622.     ELSE
  1623.         IMPORT    GetGDevice
  1624.     ENDIF
  1625.  
  1626.     IF GENERATING68K THEN
  1627.         _Color2Index:    OPWORD    $AA33
  1628.     ELSE
  1629.         IMPORT    Color2Index
  1630.     ENDIF
  1631.  
  1632.     IF GENERATING68K THEN
  1633.         _Index2Color:    OPWORD    $AA34
  1634.     ELSE
  1635.         IMPORT    Index2Color
  1636.     ENDIF
  1637.  
  1638.     IF GENERATING68K THEN
  1639.         _InvertColor:    OPWORD    $AA35
  1640.     ELSE
  1641.         IMPORT    InvertColor
  1642.     ENDIF
  1643.  
  1644.     IF GENERATING68K THEN
  1645.         _RealColor:    OPWORD    $AA36
  1646.     ELSE
  1647.         IMPORT    RealColor
  1648.     ENDIF
  1649.  
  1650.     IF GENERATING68K THEN
  1651.         _GetSubTable:    OPWORD    $AA37
  1652.     ELSE
  1653.         IMPORT    GetSubTable
  1654.     ENDIF
  1655.  
  1656.     IF GENERATING68K THEN
  1657.         _MakeITable:    OPWORD    $AA39
  1658.     ELSE
  1659.         IMPORT    MakeITable
  1660.     ENDIF
  1661.  
  1662.     IF GENERATING68K THEN
  1663.         _AddSearch:    OPWORD    $AA3A
  1664.     ELSE
  1665.         IMPORT    AddSearch
  1666.     ENDIF
  1667.  
  1668.     IF GENERATING68K THEN
  1669.         _AddComp:    OPWORD    $AA3B
  1670.     ELSE
  1671.         IMPORT    AddComp
  1672.     ENDIF
  1673.  
  1674.     IF GENERATING68K THEN
  1675.         _DelSearch:    OPWORD    $AA4C
  1676.     ELSE
  1677.         IMPORT    DelSearch
  1678.     ENDIF
  1679.  
  1680.     IF GENERATING68K THEN
  1681.         _DelComp:    OPWORD    $AA4D
  1682.     ELSE
  1683.         IMPORT    DelComp
  1684.     ENDIF
  1685.  
  1686.     IF GENERATING68K THEN
  1687.         _SetClientID:    OPWORD    $AA3C
  1688.     ELSE
  1689.         IMPORT    SetClientID
  1690.     ENDIF
  1691.  
  1692.     IF GENERATING68K THEN
  1693.         _ProtectEntry:    OPWORD    $AA3D
  1694.     ELSE
  1695.         IMPORT    ProtectEntry
  1696.     ENDIF
  1697.  
  1698.     IF GENERATING68K THEN
  1699.         _ReserveEntry:    OPWORD    $AA3E
  1700.     ELSE
  1701.         IMPORT    ReserveEntry
  1702.     ENDIF
  1703.  
  1704.     IF GENERATING68K THEN
  1705.         _SetEntries:    OPWORD    $AA3F
  1706.     ELSE
  1707.         IMPORT    SetEntries
  1708.     ENDIF
  1709.  
  1710.     IF GENERATING68K THEN
  1711.         _SaveEntries:    OPWORD    $AA49
  1712.     ELSE
  1713.         IMPORT    SaveEntries
  1714.     ENDIF
  1715.  
  1716.     IF GENERATING68K THEN
  1717.         _RestoreEntries:    OPWORD    $AA4A
  1718.     ELSE
  1719.         IMPORT    RestoreEntries
  1720.     ENDIF
  1721.  
  1722.     IF GENERATING68K THEN
  1723.         _QDError:    OPWORD    $AA40
  1724.     ELSE
  1725.         IMPORT    QDError
  1726.     ENDIF
  1727.  
  1728.     IF GENERATING68K THEN
  1729.         _CopyDeepMask:    OPWORD    $AA51
  1730.     ELSE
  1731.         IMPORT    CopyDeepMask
  1732.     ENDIF
  1733.  
  1734.     IF GENERATING68K THEN
  1735.         _DeviceLoop:    OPWORD    $ABCA
  1736.     ELSE
  1737.         IMPORT    DeviceLoop
  1738.     ENDIF
  1739.  
  1740.     IF GENERATING68K THEN
  1741.         _GetMaskTable:    OPWORD    $A836
  1742.     ELSE
  1743.         IMPORT    GetMaskTable
  1744.     ENDIF
  1745.  
  1746.     IF OLDROUTINENAMES  THEN
  1747.     ENDIF
  1748.     ENDIF ; __QUICKDRAW__
  1749.